package sshj.process.module;

import sshj.process.adapter.InspurSSHAdapter;

public abstract class InspurSSHAbstractModule implements InspurSSHModule<InspurSSHAdapter> {
    public abstract boolean checkHasInstall(InspurSSHAdapter adapter);

    public boolean run(InspurSSHAdapter adapter) {
        if (checkHasInstall(adapter)) {
            return execute(adapter);
        }
        return false;
    }

    public abstract boolean execute(InspurSSHAdapter adapter);

    public long getTimeoutTime() {
        return 10000L;
    }

    public void timeoutExecute() {

    }
}
